package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 店铺操作员表
 * </p>
 *
 * @author leehao
 * @since 2019-05-08
 */
@TableName("b_login")
public class BLogin extends Model<BLogin> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    private Integer bid;

    /**
     * 是否是主账号，0不是 1是
     */
    private Integer isPrimaryLogin;

    /**
     * 账号
     */
    private String login;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 密码
     */
    private String passWord;

    /**
     * 真实名称
     */
    private String realName;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 联系qq
     */
    private String qqVal;

    /**
     * 角色id
     */
    private Integer roleId;

    private Date createtime;

    private Integer status;
    
    /**
     * 头像
     */
    private String headurl;

    /**
     * 角色名称
     */
    @TableField(exist = false)
    private String roleName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    public Integer getIsPrimaryLogin() {
        return isPrimaryLogin;
    }

    public void setIsPrimaryLogin(Integer isPrimaryLogin) {
        this.isPrimaryLogin = isPrimaryLogin;
    }
    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getQqVal() {
        return qqVal;
    }

    public void setQqVal(String qqVal) {
        this.qqVal = qqVal;
    }
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BLogin{" +
        "id=" + id +
        ", bid=" + bid +
        ", isPrimaryLogin=" + isPrimaryLogin +
        ", login=" + login +
        ", nickName=" + nickName +
        ", passWord=" + passWord +
        ", realName=" + realName +
        ", phone=" + phone +
        ", qqVal=" + qqVal +
        ", roleId=" + roleId +
        ", createtime=" + createtime +
        ", status=" + status +
        "}";
    }

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}
    
    
}
